﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="MTypeList.aspx.cs" Inherits="ZF.BLL.Admin.MTypeList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
   <%-- <!--自定义条件 开始-->
    <div class="tabHeadMenu">
        <a href="HouseList.aspx?days=7" class='<%=(DealType==-1)?"action":"" %>'>最新全部房源</a> <a
            href="HouseList.aspx?dt=1&days=7" class='<%=(DealType==1)?"action":"" %>'>最新整租房源</a>
        <a href="HouseList.aspx?dt=2&days=7" class='<%=(DealType==2)?"action":"" %>'>最新合租房源</a>
        <a href="HouseList.aspx?dt=3&days=7" class='<%=(DealType==3)?"action":"" %>'>最新一手房源</a>
        <a href="HouseList.aspx?dt=4&days=7" class='<%=(DealType==4)?"action":"" %>'>最新二手房源</a>
    </div>
    <!--自定义条件 结束-->--%>
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="MType.MerchandiseTypeId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("MType.MerchandiseTypeId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="上级类别 "  >
                    <ItemTemplate>
                        <%#  Eval("PName")%>
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="类别名称"  >
                    <ItemTemplate>
                       <a href="MTypeList.aspx?pid=<%# Eval("MType.MerchandiseTypeId")%>"><%#  Eval("MType.Name")%></a>
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="级别"  >
                    <ItemTemplate>
                        <%# ((int)Eval("MType.ParentId")==0)?"一级":"二级" %>
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                         <a href='MerchandiseList.aspx?mt=<%# Eval("MType.MerchandiseTypeId")%>'>
                                    查看商品</a> |
                          <a href='<%=this.ManagePage %>?ot=Edit&id=<%# Eval("MType.MerchandiseTypeId")%>'>
                                    修改</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("MType.MerchandiseTypeId") %>'
                            OnClientClick="return confirm('删除该类型，该类型所属的类型及商品将被删除，是否继续执行该操作?');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('删除类型，类型所属的类型及商品将被删除，是否继续执行该操作');">删除选中的记录</zf:LinkButton>
            <a href="<%=this.ListPage %>">显示所有<%=this.CTitle %></a>
        <a href="<%=this.ManagePage %>?ot=AddNew">添加<%=this.CTitle %></a>
 
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <%--<div class="searchContainer">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">物业名称:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbTitle"></zf:TextBox></span>
                        <span class="t">物业类型:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseType" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(小于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime1" onfocus="calendar();"></zf:TextBox></span>
                        <br />
                        <span class="t">客户编号:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbHouseNo"></zf:TextBox></span>
                        <span class="t">房源状态:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseStatus" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                                 <asp:ListItem Value="1" Text="发布中"></asp:ListItem>
                                  <asp:ListItem Value="2" Text="停止发布"></asp:ListItem>
                                   <asp:ListItem Value="3" Text="已交易"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(大于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime2" onfocus="calendar();"></zf:TextBox></span>
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>--%>
    <!--搜索 结束-->
</asp:Content>
